﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
	<head>
		<title>用户登陆</title>
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FFFFFF;
}
-->
</style>
		<script language="JavaScript">
	function correctPNG() {
		var arVersion = navigator.appVersion.split("MSIE")
		var version = parseFloat(arVersion[1])
		if ((version >= 5.5) && (document.body.filters)) {
			for ( var j = 0; j < document.images.length; j++) {
				var img = document.images[j]
				var imgName = img.src.toUpperCase()
				if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
					var imgID = (img.id) ? "id='" + img.id + "' " : ""
					var imgClass = (img.className) ? "class='" + img.className
							+ "' " : ""
					var imgTitle = (img.title) ? "title='" + img.title + "' "
							: "title='" + img.alt + "' "
					var imgStyle = "display:inline-block;" + img.style.cssText
					if (img.align == "left")
						imgStyle = "float:left;" + imgStyle
					if (img.align == "right")
						imgStyle = "float:right;" + imgStyle
					if (img.parentElement.href)
						imgStyle = "cursor:hand;" + imgStyle
					var strNewHTML = "<span "
							+ imgID
							+ imgClass
							+ imgTitle
							+ " style=\""
							+ "width:"
							+ img.width
							+ "px; height:"
							+ img.height
							+ "px;"
							+ imgStyle
							+ ";"
							+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
							+ "(src=\'" + img.src
							+ "\', sizingMethod='scale');\">__tag_44$67_"
					img.outerHTML = strNewHTML
					j = j - 1
				}
			}
		}
	}
	window.attachEvent("onload", correctPN);
	function chkinput(form){
	    if(form.username.value == ""){
	          alert("请输入用户名");
	          form.username.focus();
	          return(false);
	    }
	    return(true);
	}
</script>
	</head>

	<link href="images/skin.css" rel="stylesheet" type="text/css"></link>

	<body>
		<table width="100%" height="582" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td height="30" valign="top">
					<table width="100%" height="30" border="0" cellpadding="0"
						cellspacing="0" class="login_top_bg">
						<tr>
							<td width="1%" height="30" bgcolor="#002B55">&nbsp;
								
							</td>
							<td height="30" bgcolor="#002B55">&nbsp;
								
							</td>
							<td width="17%" bgcolor="#002B55">&nbsp;
								
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td valign="top">
					<table width="1300" height="532" border="0" cellpadding="0"
						cellspacing="0" class="login_bg">
						<tr>
							<td width="49%" align="right" background="images/login_bg.jpg">
								<table width="95%" height="532" border="0" cellpadding="0"
									cellspacing="0" background="images/login-content-bg.gif"
									class="login_bg2">
									<tr>
										<td height="138" valign="top">
											<table width="100%" height="403" border="0" cellpadding="0"
												cellspacing="0">
												<tr>
													<td height="125">&nbsp;
														
													</td>
												</tr>
												<tr>
													<td height="80" align="right" valign="top">
														<img src="images/logo.png" width="279" height="68">
													</td>
												</tr>
												<tr>
													<td height="198" align="right" valign="top">
														<table width="100%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td width="50%">&nbsp;
																	
																</td>
																<td height="25" colspan="2" class="left_txt">
																	<p>
																		<font size="4">湖南大学
																		</font>
																	</p>
																</td>
															</tr>
															<tr>
																<td width="50%">&nbsp;
																	
																</td>
																<td height="25" colspan="2" class="left_txt">
																	<p>
																		<font size="4">软件学院
																		</font>
																	</p>
																</td>
															</tr>
															<tr>
																<td width="50%">&nbsp;
																	
																</td>
																<td height="25" colspan="2" class="left_txt">
																	<p>
																		<font size="4">软件工程二班
																		</font>
																	</p>
																</td>
															</tr>
															<tr>
																<td>&nbsp;
																	
																</td>
																<td width="32%" height="40">&nbsp;
																	
																</td>
																<td width="35%">&nbsp;
																	
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>

								</table>
							</td>
							<td width="1%" background="images/login_bg.jpg">&nbsp;
								
							</td>
							<td width="50%" valign="bottom" background="images/login_bg.jpg">
								<table width="648" height="437" border="0" align="center"
									cellpadding="0" cellspacing="0" style="height: 437px;">
									<tr>
										<td width="18%">&nbsp;
											
										</td>
										<td width="82%" height="38">
											<span class="login_txt_bt">用户登陆管理</span>
										</td>
									</tr>
									<tr>
										<td>&nbsp;
											
										</td>
										<td height="21">
											<table cellSpacing="0" cellPadding="0" width="100%"
												border="0" id="table211" >
												<tr>
													<td height="164" colspan="2" align="middle">
														<form name="myform" action="LoginServlet" method="post"  onsubmit = "return chkinput('myform')">
															<table cellSpacing="0" cellPadding="0" width="100%"
																border="0" height="143" id="table212">
																<tr>
																	<td width="17%" height="38" class="top_hui_text">
																		<span class="login_txt">用户类型</span>：
																	</td>
																	<td height="38" colspan="2" align="left"
																		class="top_hui_text">
																		<label>
																			<select name="select">
																				<option value="普通用户">
																					普通用户
																				</option>
																				<option value="管理员">
																					管理员
																				</option>
																			</select>
																		</label>
																	</td>
																</tr>
																<tr>
																	<td width="13%" height="35" class="top_hui_text">
																		<span class="login_txt">账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</span>
																	</td>
																	<td height="35" colspan="2" align="left"
																		class="top_hui_text">
																		<input name="username" style="width: 130px;"
																			class="editbox4" type="text" size="20">
																	</td>
																</tr>
																<tr>

																	<td width="13%" height="35" class="top_hui_text">
																		<span class="login_txt">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</span>
																	</td>
																	<td height="35" colspan="2" align="left"
																		class="top_hui_text">
																		<input class="editbox4" style="width: 130px;"
																			type="password" size="20" name="password">
																	</td>

													 			</tr>
                                                       <!--          <%
                                                                //      out.println("if判断sdfasdfasdfasdfas");
																      if(request.getAttribute("error")!= null)
																	  {
																%>
                                                                <tr >
                                                                      <%=request.getAttribute("error")%>
                                                                </tr>
                                                                <%
																	  }
																%>               -->
																<tr>
																	<td height="35">&nbsp;
																		
																	</td>
																	<td width="20%" height="35">
																		<input name="Submit" type="submit" class="button"
																			id="Submit" value="登 陆">
																			
																	</td>
																	<td width="67%" align="left" class="top_hui_text">
																		<input name="Reset" type="reset" class="reset"
																			id="Reset" value="重 置">
																	</td>
																</tr>
															</table>
															<a href="frame/frame_user.html">用户</a>&nbsp;&nbsp;
															<a href="frame/manager.html">管理员</a>
															<br>
														</form>
													</td>
												</tr>
												<tr>
													<td width="433" height="164" align="right" valign="bottom">
														<img src="images/login-wel.gif" width="242" height="138">
													</td>
													<td width="57" align="right" valign="bottom">&nbsp;
														
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="20">
					<table width="100%" border="0" cellspacing="0" cellpadding="0"
						class="login-buttom-bg">
						<tr>
							<td align="center" bgcolor="#00152B">
								<span class="login-buttom-txt">Copyright &copy; 2009-2010
									Second Team</span>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>


	</body>
</html>